package graphBuilder;

import gui.MapGUI;

import javax.swing.JFrame;
import javax.swing.JPanel;

import Simulator.Simulator;

public class LaunchGUI extends JFrame 
{
	MapGUI mapGUI;
    public LaunchGUI(Simulator thread) 
    {
    	//this(new MapGUI(thread, null));
    }
    
    public LaunchGUI(JPanel p)
    {
    	add(p);
        this.setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //setSize(1024,768);
        setSize(1024, 730);
        setLocationRelativeTo(null);
        setTitle("Ambulance Manager - City map");		
        setResizable(false);
        setVisible(true);
    }

    public LaunchGUI(MapGUI jPanel) 
    {
    	this.mapGUI = jPanel;
    	add(jPanel);
        this.setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //setSize(1024,768);
        setSize(1024, 730);
        setLocationRelativeTo(null);
        setTitle("Ambulance Manager - City map");		
        setResizable(false);
        setVisible(true);
        
        /*  this.setTitle("Ambulance Manager - City map");
		
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setResizable(false);
        this.setSize(800,567);
        this.panel = new MapPanel();
        
        this.setContentPane(this.panel);
        
        //this.pack();
        
        
        
        this.setVisible(true);
        */
	}
    
	public static void main(String[] args) 
    {
        new LaunchGUI(new graphBuilder());
    }
}